package w1118;

public class Test05 {
public static void main(String[] args) {
	String str ="my sd dsf dfs";
	int index=str.indexOf("m");
	System.out.println(index);
	index=str.lastIndexOf("s");
	System.out.println(index);
	String a =str.substring(3);
	System.out.println(a);
	String s =str.substring(0, 5);
	System.out.println(s);
}
}
